package cn.four.hqServer.modules.balance.service.impl;

import cn.four.hqServer.common.entity.HqUserInfo;
import cn.four.hqServer.modules.balance.mapper.LycUserInfoMapper;
import cn.four.hqServer.modules.balance.service.LycUserInfoService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author znb
 * @since 2023-02-23
 */
@Service
public class LycUserInfoServiceImpl extends ServiceImpl<LycUserInfoMapper, HqUserInfo> implements LycUserInfoService {

    @Override
    public HqUserInfo getUserInfo(String userId) {
        QueryWrapper<HqUserInfo> userInfoQuery = new QueryWrapper<>();
        return this.getOne(userInfoQuery.eq("user_id", userId));
    }
}
